//
//  SYFirstModel.m
//  装修管家
//
//  Created by 千锋 on 16/1/20.
//  Copyright (c) 2016年 IOS1503薛凯. All rights reserved.
//

#import "SYFirstModel.h"

@implementation SYFirstModel
-(instancetype)initWithDic:(NSDictionary *)dic{
    if (self=[super init]) {
//        self.article_id=[dic objectForKey:@"article_id"];
        self.title=[dic objectForKey:@"title"];
        self.filename=[dic objectForKey:@"filename"];
        self.puttime=[dic objectForKey:@"puttime"];
        self.collection_num=[dic objectForKey:@"collection_num"];
        self.summary=[dic objectForKey:@"summary"];
        self.click=[dic objectForKey:@"click"];
        self.isCollection=[dic objectForKey:@"isCollection"];
        self.webUrl=[dic objectForKey:@"webUrl"];
        self.type=[[NSString alloc] init];
    }
    return self;
    
}
- (NSString *)description
{
    return [NSString stringWithFormat:@"%@,%@,%@,%@", self.type,self.filename,self.puttime,self.click];
}
@end
//type": "1",
//"info": [
//         {
//             "article_id": "7094",
//             "title": "唤醒地道京味记忆",
//             "filename": "http://pic.to8to.com/xiaoguotu_topic/2016/01/19/day160119022114_267258_img_for_mobile.jpg",
//             "puttime": "2016-01-18",
//             "collection_num": "3",
//             "summary": "屋主是一位干练且娴雅的女士，因工作而旅居北京三十余年。人生大半岁月皆伴随着北京成长，为了保留那份独有的记忆与情谊，特别找来设计团队完成充满京味的宅邸。",
//             "click": "588",
//             "isCollection": "0",
//             "webUrl": "http://m.to8to.com/xiaoguotu/topic/7094.html"